package controller 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Gaz Williams
	 */
	public class TimerModelEvent extends Event 
	{
		
		public static const TIME_UPDATED:String = "time updated";
		
		public var timeRemaining:uint;
		
		public function TimerModelEvent(type:String, timeRemaining:uint, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			this.timeRemaining = timeRemaining;
		} 
		
		public override function clone():Event 
		{ 
			return new TimerModelEvent(type, timeRemaining, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("TimerModelEvent", "type", "timeRemaining", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}